import React from 'react';

import lazyLoad from '@/routes/components/lazyLoad';
import type { IRouteObj } from '@/routes/interface';

// 错误页面模块
const errorRouter: Array<IRouteObj> = [
  {
    path: '/403',
    element: lazyLoad(React.lazy(() => import('@/components/ErrorMessage/403'))),
    hidden: true,
    meta: {
      title: '403页面'
    }
  },
  {
    path: '/404',
    element: lazyLoad(React.lazy(() => import('@/components/ErrorMessage/404'))),
    hidden: true,
    meta: {
      title: '404页面'
    }
  },
  {
    path: '/500',
    element: lazyLoad(React.lazy(() => import('@/components/ErrorMessage/500'))),
    hidden: true,
    meta: {
      title: '500页面'
    }
  }
];

export default errorRouter;
